//
//  GoodsCommonModel.m
//  ZITHER
//
//  Created by imac on 2018/6/7.
//  Copyright © 2018年 MinesTime. All rights reserved.
//

#import "GoodsCommonModel.h"

@implementation GoodsCommonModel
- (NSString *)image_default {
    if (_image_default) {
        return kIMAGE_URL(_image_default);
    }
    // 收藏足迹
    return kIMAGE_URL(_img);
}
- (NSString *)conjuncture_price {
    if (_conjuncture_price) {
        return kSTRING_FORMAT(@"%@",_conjuncture_price);
    }  else if (_price) {
        // 收藏足迹
        return kSTRING_FORMAT(@"%@",_price);
    }
    return kSTRING_FORMAT(@"暂无价格");
}

- (NSString *)goods_name {
    if (_goods_name) {
        return _goods_name;
    } else if (_brand_name_ch) {
        return kSTRING_FORMAT(@"%@%@%@",_brand_name_ch,_series_name,_model_name);
    } else if (_goodsName) {
        // 收藏足迹
        return _goodsName;
    }
    
    return @"暂无";
}
- (NSString *)brand_name_ch {
    if (_brand_name_ch) {
        return _brand_name_ch;
    }
    return @"";
}
- (NSString *)series_name {
    if (_series_name) {
        return _series_name;
    }
    return @"";
}
- (NSString *)model_name {
    if (_model_name) {
        return _model_name;
    }
    return @"";
}
@end
